//样式js
// 获取模态
var insertmodal = document.getElementById("insertmodal");
var updatemodal = document.getElementById("updatemodal");
var deletemodal = document.getElementById("deletemodal");
var notchoose = document.getElementById("notchoose");
//获取开启模态按钮
var btn = document.getElementById("myBtn0");
btn.onclick = function() {
    insertmodal.style.display = "block";
}
var btn1 = document.getElementById("myBtn1");
btn1.onclick = function() {
    updatemodal.style.display = "block";
}
var btn2 = document.getElementById("myBtn2");
btn2.onclick = function() {
    deletemodal.style.display = "block";
}
//判断侧边栏是否展开
var openDt = document.getElementsByTagName("dt");

// 当用户点击模态之外的任何地方时，关闭它
window.onclick = function(event) {
    if (event.target == insertmodal) {
        insertmodal.style.display = "none";
    }
    if (event.target == updatemodal) {
        insertmodal.style.display = "none";
    }
    if (event.target == deletemodal) {
        deletemodal.style.display = "none";
    }
    if (event.target == notchoose) {
        notchoose.style.display = "none";
    }

}


//增加，删除，修改模态框，若点击取消，应该关闭模态框
$(".cancel").click(function(){
    insertmodal.style.display = "none";
    updatemodal.style.display = "none";
    deletemodal.style.display = "none";
})

$(".search-sub").hover(function(){
    $(".search-sub").css("width","1.725rem");
    $(".search-sub").css("height",".725rem");
},
function(){
    $(".search-sub").css("width","1.625rem");
    $(".search-sub").css("height",".625rem");
}
)
$(".in-de-up div").hover(function(){
    $(this).css("width","1.75rem");
    $(this).css("height",".725rem");
},
function(){
    $(this).css("width","1.55rem");
    $(this).css("height",".625rem");
}
);
//全选
$("#all").click(function () {
		var flag = $(this).prop("checked");
		if (flag) {
			$(".medican").each(function (index, ele) {
				$(ele).prop("checked", true)
			});
		} else {
			$(".medican").each(function (index, ele) {
				$(ele).prop("checked", false)
			})
		}
	});

// 跳转页码
